package com.mes.md.service.impl;

import com.mes.pojo.md.ItemType;
import com.mes.md.mapper.ItemTypeMapper;
import com.mes.md.service.ItemTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author hitsune
 * @Company kafu chino
 * @Description
 * @Time 2024/10/16 19:20
 */

@Service
public class ItemTypeServiceImpl implements ItemTypeService {

    @Autowired
    private ItemTypeMapper itemTypeMapper;
    @Override
    public List<ItemType> selectItemTypeList(ItemType itemType) {
        return itemTypeMapper.selectItemTypeList(itemType);
    }

    @Override
    public void insertItemType(ItemType itemType) {
        itemTypeMapper.insertItemType(itemType);
    }

    @Override
    public Integer deleteItemType(Long itemTypeId) {
        return itemTypeMapper.deleteItemType(itemTypeId);
    }

    @Override
    public List<ItemType> selectItemTypeById(ItemType itemType) {
        return itemTypeMapper.selectItemTypeById(itemType);
    }

    @Override
    public Integer updateItemType(ItemType itemType) {
        return itemTypeMapper.updateItemType(itemType);
    }

    @Override
    public Integer itemTypeIsParent(Long itemTypeId) {
        return itemTypeMapper.itemTypeIsParent(itemTypeId);
    }
}
